import request from '@/utils/request'

const apiName = "/system/sys-role"

export default {
  getAllRole: _ => request({
    url: `${apiName}/getAllRole`,
    method: 'Get',
  }),

  getUserRoleByUserId: params => request({
    url: `${apiName}/getUserRoleByUserId`,
    method: 'Get',
    params: params
  }),
}
